<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
  <head>
    <title>在线音乐后台首页</title>
	<link href="CSS/style.css" rel="stylesheet"/>
	<script language="javascript">
	function del(para){
		if(confirm("确定要删除该歌曲吗？")){
			window.location.href="song.do?action=del&id="+para;
		}
	}
	</script>
  </head>
  
  <body>
<div id="header">
<!--包含搜索条件-->
<div id="search">

  <form name="form_search" method="post" action="adminSearch.do?action=adm_search" style=" margin:0px;">
  搜索：
    <select name="songType_more">
      <option value="0" selected="selected">全部</option>
	  <c:forEach items="${topics }" var="topic" >
      <option value="${topic.id }">${topic.typeName } </option>
      </c:forEach>
	    
    </select>
    <input type="text" name="key" id="key">
<input name="fieldName" type="radio" class="noborder" value="songName" checked>
  歌曲名
  &nbsp;
  <input name="fieldName" type="radio" class="noborder" value="specialName">
  专辑 &nbsp;
  <input name="fieldName" type="radio" class="noborder" value="singer">
  歌手&nbsp;
  <input name="Submit" type="submit" class="btn_bg" value="搜索">
  </form>

 </div>
 
</div>
<div id="title" style=" width:899px;height:25px; text-align:left; padding-left:10px; padding-top:5px; background-image:url(images/navigation_bg.gif);">
查询条件：查询类别为[*] 查询依据为[${hint1 }]，查询关键字为[${hint2 }]&nbsp;&nbsp;&nbsp;<a href="index.do" >首页</a>
</div>
<!-------------->
<div id="main" style="padding:0px; margin:0px; margin-bottom:5px;" class="tableBorder_blue">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" align="right"><a href="addsong.do" class="word_orange">添加歌曲</a>&nbsp;&nbsp; </td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
      <tr>
        <td height="27" align="center" bgcolor="#FFFFFF">歌曲名称</td>
        <td align="center" bgcolor="#FFFFFF">演唱者</td>
        <td align="center" bgcolor="#FFFFFF">专辑名</td>
        <td align="center" bgcolor="#FFFFFF">文件大小</td>
        <td align="center" bgcolor="#FFFFFF">文件格式</td>
		<td align="center" bgcolor="#FFFFFF">歌曲类别</td>
        <td align="center" bgcolor="#FFFFFF">试听次数</td>
        <td align="center" bgcolor="#FFFFFF">下载次数</td>
        <td align="center" bgcolor="#FFFFFF">删除</td>
      </tr>
	<c:forEach items="${pagelist.datas }" var="song" >
      <tr>
	    <td height="27" bgcolor="#FFFFFF">&nbsp;
        ${song.songName }</td>
        <td bgcolor="#FFFFFF">&nbsp;
        ${song.singer }</td>
        <td bgcolor="#FFFFFF">&nbsp;
        ${song.specialName }</td>
        <td bgcolor="#FFFFFF">&nbsp;
        ${song.fileSize }</td>
        <td bgcolor="#FFFFFF">&nbsp;
        ${song.format }</td>
		<td bgcolor="#FFFFFF">&nbsp;
        ${song.songType }</td>
        <td bgcolor="#FFFFFF">&nbsp;
        ${song.hits }</td>
        <td bgcolor="#FFFFFF">&nbsp;
        ${song.download }</td>
        <td align="center" bgcolor="#FFFFFF"><a  href="deletesong.do?id=${song.id }" onClick="del('35&songType_more=0&fieldName=&key=')">删除</a></td>
      </tr>
	</c:forEach>
  </table>
  <table width="100%"  border="0" cellspacing="0" cellpadding="0"> 
  <tr> 
	
	<td width="27%" style="padding-left:10px"></td> 
		<td width="73%" height="24"><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr> <td height='24' align='right'>当前页数：[${pageNo }/${pagelist.pageNums }]&nbsp;<a href='adminsearchByNext.do?id=${id }&hint1=${hint1 }&hint2=${hint2 }&pageNo=1'>首页&nbsp;</a><c:if test="${pageNo>1 }"> <a href='adminsearchByNext.do?id=${id }&hint1=${hint1 }&hint2=${hint2 }&pageNo=${pageNo-1 }'>上一页</a></c:if><c:if test="${pageNo<pagelist.pageNums }"><a href='adminsearchByNext.do?id=${id }&hint1=${hint1 }&hint2=${hint2 }&pageNo=${pageNo+1 }'>下一页</a></c:if>　<a href='adminsearchByNext.do?id=${id }&hint1=${hint1 }&hint2=${hint2 }&pageNo=${pagelist.pageNums }'>最后一页&nbsp;</a></td> </tr>	</table></td> 
  </tr> 
</table>
</div>

<div id="copyright">
<ul>
	<li> 首页 | 流行金曲 | 经典老歌 | 欧美经典 | 校园民谣 | 联系我们 | 编程词典网 | 明日图书网 | 明日科技主站 | <a href="out.do">退出后台</a></li>
	<li>技术服务热线：400-675-1066 传真：0431-84972266 企业邮箱：mingrisoft@mingrisoft.com</li>
	<li>
	公司地址：吉林省长春市亚泰广场C座  欢迎致电来函</li>
	<li>Copyright &copy; www.mrbccd.com All Rights Reserved! </li>
</ul>
</div>

  </body>
</html>
